
#include "ProcessManager.h"
#include "ProcessList.h"
#include "Windows.h"

int main()
{
	ProcessManager myManager;

	WaitProcess *myTimer = new WaitProcess(1000);
	KaboomProcess *myBomb = new KaboomProcess();

	WaitProcess *myTimer2 = new WaitProcess(2000);
	KaboomProcess *myBomb2 = new KaboomProcess();

	KaboomProcess *myBomb3 = new KaboomProcess();

	myTimer2->SetNext(myBomb2);

	myBomb->SetNext(myTimer2);

	myTimer->SetNext(myBomb);

	myTimer->InitializeProcess();
	myManager.Attach(myTimer);
	myManager.Attach(myBomb3);

	//GameLoop Simulation
	while (1==1)
	{
		myManager.UpdateProcesses(GetTickCount());
	}
	return 0;
}
